import "reflect-metadata";

import { bootstrapMicroframework } from "microframework";
import { expressLoader } from "./loaders/expressLoader";
import { envLoader } from './loaders/envLoader';
import {MongoLoader} from './loaders/mongoLoader';


bootstrapMicroframework({
    loaders: [ 
        envLoader,
        expressLoader,        
        MongoLoader,
    ]
})
    .then(() => console.log("Application is up and running."))
    .catch(error => console.log("Application is crashed: " + error));